import com.lzl.entity.Pet;
import com.lzl.factory.PetDaoFactory;
import com.lzl.service.PetService;
import com.lzl.service.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
//        PetService petService = new PetServiceImpl();
//        Pet pet = new Pet();
//        pet.setName("小马喽");
//        petService.save(pet);

        PetDaoFactory.defaultBeanName = "petDaoOracleImpl";
        PetService petService = new PetServiceImpl();
        Pet pet = new Pet();
        pet.setName("小马喽");
        petService.save(pet);
    }
}
